<!DOCTYPE html>
<html lang="zh">
<head>
    <title></title>
    <meta charset="UTF-8"/>
    <script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript">
        $(function(){
            $('#channelSync').click(function() {
                if (confirm("更新门店数据需要较长时间，点击确定后请等待执行完成")) {
                    $('#channelSync').attr('disabled', true);
                    $('#channelSync').val('正在更新')
                    $.getJSON("tablechannelsync.html", function(obj) {
                        alert(obj.resultMessage);
                        $('#channelSync').attr('disabled', false);
                        $('#channelSync').val('点击开始');
                    })
                }
            });
        })
    </script>
</head>
<body>
<p>门店数据更新</p>
<input id="channelSync" type="button" onclick="javascript:void(0)" value="点击开始">
</body>
</html>
